package com.erp.erp_entitys.InspectCargo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CarryPlanVo {

    /**
     * 出运计划主键
     */
    private Integer carryPlanId;

    /**
     * 出运计划编号
     */
    private String loadPlanNo;

    /**
     * 合同创建时间
     */
    private Date createTime;

    /**
     * 出运日期
     */
    private Date shippingTime;

    /**
     * 计划出运日期
     */
    private Date carryTime;

    /**
     * 运输方式
     */
    private String transMode;

    /**
     * 操作员
     */
    private String opName;

    /**
     * 制单公司/签约公司id
     */
    private String companyId;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date shippingStartTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date shippingEndTime;


    public Integer getCarryPlanId() {
        return carryPlanId;
    }

    public void setCarryPlanId(Integer carryPlanId) {
        this.carryPlanId = carryPlanId;
    }

    public String getLoadPlanNo() {
        return loadPlanNo;
    }

    public void setLoadPlanNo(String loadPlanNo) {
        this.loadPlanNo = loadPlanNo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getShippingTime() {
        return shippingTime;
    }

    public void setShippingTime(Date shippingTime) {
        this.shippingTime = shippingTime;
    }

    public Date getCarryTime() {
        return carryTime;
    }

    public void setCarryTime(Date carryTime) {
        this.carryTime = carryTime;
    }

    public String getTransMode() {
        return transMode;
    }

    public void setTransMode(String transMode) {
        this.transMode = transMode;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public Date getShippingStartTime() {
        return shippingStartTime;
    }

    public void setShippingStartTime(Date shippingStartTime) {
        this.shippingStartTime = shippingStartTime;
    }

    public Date getShippingEndTime() {
        return shippingEndTime;
    }

    public void setShippingEndTime(Date shippingEndTime) {
        this.shippingEndTime = shippingEndTime;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append(" \"carryPlanId\":").append(carryPlanId);
        sb.append(", \"loadPlanNo\":\"").append(loadPlanNo).append('\"');
        sb.append(", \"createTime\":\"").append(createTime).append('\"');
        sb.append(", \"shippingTime\":\"").append(shippingTime).append('\"');
        sb.append(", \"carryTime\":\"").append(carryTime).append('\"');
        sb.append(", \"transMode\":\"").append(transMode).append('\"');
        sb.append(", \"opName\":\"").append(opName).append('\"');
        sb.append(", \"companyId\":\"").append(companyId).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
